home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / system / installerfx / examples / magicselector example < prev   
Encoding:
Text File  |  1997-09-22  |  1.6 KB  |  103 lines

  1. ; InstallerFX script
  2. (if (= x 1) (welcome))
  3.  
  4. (onerror (CLEANUP))
  5.  
  6. ; Cleanup any temporary mess we created
  7. (procedure CLEANUP
  8.     ; Nothing to cleanup
  9.     (delete "t:Background")
  10.     (delete "t:Background.prefs")
  11.     (delete "t:Logopic")
  12.     (delete "t:Logopic.prefs")
  13. ) ; CLEANUP
  14.  
  15. (set @user-level 0)
  16.  
  17. ;(set Opt 3)
  18. ;(complete 0)
  19.  
  20. (copyfiles
  21.     (source "InstallerFX/Background_DARK")
  22.     (dest "t:")
  23.     (newname "Background")
  24. )
  25.  
  26. (copyfiles
  27.     (source "InstallerFX/Background.prefs")
  28.     (dest "t:")
  29.     (newname "Background.prefs")
  30. )
  31. (run "run InstallerFX/InstallerFX t:Background")
  32.  
  33. (set @user-level 2)
  34.  
  35. ;Get directory to install test to:
  36. (set destdir 
  37.     (askdir 
  38.         (prompt "In which drawer should testfiles be installed?") 
  39.         (help @askdir-help)
  40.         (default ("t:"))
  41.     )
  42. )
  43.  
  44. (copyfiles
  45.     (source "InstallerFX/MagicSelector")
  46.     (dest "t:")
  47.     (newname "Logopic")
  48. )
  49. (copyfiles
  50.     (source "InstallerFX/MagicSelector.prefs")
  51.     (dest "t:")
  52.     (newname "Logopic.prefs")
  53. )
  54.  
  55. (run "run InstallerFX/InstallerFX t:logopic")
  56.  
  57.  
  58. (complete 10)
  59.  
  60. (set installfiles
  61.     (askoptions
  62.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  63.         (help @askoptions-help)
  64.         (choices "InstallerFX")
  65.         (default Opt)
  66.     )
  67. )
  68.  
  69. (complete 50)
  70.  
  71. ;Copy program files to destination.
  72.  
  73. (if (BITAND installfiles 1)
  74. (copyfiles
  75.     (source "InstallerFX")
  76.     (dest destdir)
  77.     (all)
  78. )
  79. )
  80.  
  81. (set installfiles
  82.     (askoptions
  83.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  84.         (help @askoptions-help)
  85.         (choices "InstallerFX")
  86.         (default Opt)
  87.     )
  88. )
  89.  
  90.  
  91. (if (BITAND installfiles 1)
  92. (copyfiles
  93.     (source "InstallerFX")
  94.     (dest destdir)
  95.     (all)
  96. )    
  97. )
  98.  
  99. (complete 100)
  100.  
  101. (CLEANUP)
  102. (exit)
  103.